package com.demo.mapper.riot;

import com.demo.entity.riot.Summoner;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;

public interface SummonerMapper {
    String getPuuidByName(@Param("serverRegion") String serverRegion, @Param("gameName") String gameName, @Param("tagLine") String tagLine);
    Summoner getSummonerByPuuid(@Param("puuid") String puuid, @Param("serverRegion") String serverRegion);
    void insertSummoner(Summoner summoner);
    void insertSummonerInfo(Summoner summoner);
    void updateSummonerInfo(Summoner summoner);
    Boolean hasSummoner(@Param("serverRegion") String serverRegion, @Param("puuid") String puuid);
    LocalDateTime getLastUpdate(@Param("serverRegion") String serverRegion, @Param("puuid") String puuid);
}
